<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- <ul>
            <li v-for="item in 10">{{item}}</li>
        </ul> -->


        <ul>
            <li v-for="item in list">{{item}}</li>
        </ul>
        <ol>
            <li v-for="(item,index) in list" :key="index">{{index}}---{{item}}</li>
        </ol>

        <ul>
            <li v-for="item in JSON" :key="item.id">{{item.id}}----{{item.text}}</li>
        </ul>
    </div>
    <script>
        let vm = new Vue({
            el: "#app",
            data: {
                list: [
                    "足球",
                    "蓝球",
                    "排球"
                ],
                JSON: [{
                    id:0,
                    text:"足球"
                }, {
                    id:1,
                    text:"蓝球"
                }, {
                    id:2,
                    text:"排球"
                }]
            }
        })
    </script>
</body>

<html>